﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace VacationDaysCommons
{
    public enum VDMessageType
    {
        NewUser = 0, // new user added message --> goes to admin
        EmployeeAdded = 1, // new employee added message
        EmployeeFired = 2,
        EmployeeAcquired = 3,// employee transferred to PM
        VacationRequested = 4,
        VacationApproved = 5,
        VacationRejected = 6,
    }

    [DataContract]
    public class VDMessageItem
    {
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        public Guid UserId { get; set; }
        [DataMember]
        public Guid SenderId { get; set; }
        [DataMember]
        public string SenderName{ get; set; }
        [DataMember]
        public VDMessageType MessageType { get; set; }
        [DataMember]
        public string MessageText { get; set; }
        [DataMember]
        public DateTime Timestamp { get; set; }
    }
}
